# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-pyrdfa3
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=pyrdfa3
pkgver=3.6.2
pkgrel=1
pkgdesc="pyRdfa Libray"
url="https://pypi.python.org/project/pyrdfa3"
license="W3C-20150513"
arch="noarch"
depends="py3-rdflib py3-html5lib py3-isodate"
checkdepends="py3-pytest"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
source="$pkgname-$pkgver.tar.gz::https://github.com/prrvchr/pyrdfa3/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
options="!check" # No test suite
subpackages="$pkgname-pyc"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
cd436335f28a1f437eaa507927ee30515b2a6881b2b836da52db96196031eb2ff4fb7619201b285775e24e3e47c8f88fae3c11d2db9702f9bcb23e39a8823961  py3-pyrdfa3-3.6.2.tar.gz
"
